<template>
	<view>
		<view class="uni-padding-wrap uni-common-mt">
						<uni-segmented-control :current="current" :values="items" style-type="text"
							active-color="#dd524d" @clickItem="onClickItem" />
					</view>
					<view class="content">
						<view v-if="current === 0"><text class="content-text">暂无内容</text></view>
						<view v-if="current === 1"><text class="content-text">暂无内容</text></view>
					</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: ['京东', '拼多多'],
				current:0
			}
		},
		methods: {
				onClickItem(e) {
							if (this.current !== e.currentIndex) {
								this.current = e.currentIndex
							}
						}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFFFFF;
	}
	.example-body {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		padding: 0;
	}

	.uni-common-mt {
		margin-top: 30px;
	}

	.uni-padding-wrap {
		// width: 750rpx;
		padding: 0px 30px;
	}

	.content {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		justify-content: center;
		align-items: center;
		height: 150px;
		text-align: center;
	}

	.content-text {
		font-size: 14px;
		color: #666;
	}

	.color-tag {
		width: 25px;
		height: 25px;
	}

	.uni-list {
		flex: 1;
	}

	.uni-list-item {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex: 1;
		flex-direction: row;
		background-color: #FFFFFF;
	}


	.uni-list-item__container {
		padding: 12px 15px;
		width: 100%;
		flex: 1;
		position: relative;
		/* #ifndef APP-NVUE */
		display: flex;
		box-sizing: border-box;
		/* #endif */
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-bottom-style: solid;
		border-bottom-width: 1px;
		border-bottom-color: #eee;
	}

	.uni-list-item__content-title {
		font-size: 14px;
	}
	.content{
		background-image: url(../../static/images/bj1.png);
		padding-bottom: 300rpx;
		background-repeat: no-repeat;
		background-position: center;
	}
</style>
